﻿using System.ServiceModel;
using System.ServiceModel.Activation;

namespace Songhay.Web.BiggestBox.Services
{
    using Models;

    /// <summary>
    /// BiggestBox Silverlight-enabled Service
    /// </summary>
    [ServiceContract(Namespace = "http://WordWalkingStick.com/silverlightbiggestbox/Services/BiggestBoxService")]
    [SilverlightFaultBehavior]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class BiggestBoxService
    {
        /// <summary>
        /// Calculates PI.
        /// </summary>
        /// <param name="digits">The digits.</param>
        [OperationContract]
        public string CalculatePi(int digits)
        {
            return PiNumber.Process(digits);
        }
    }
}
